export default {
  namespaced: true,
  state: {
    bookTypeList: {
      firstBookTypeList: [],
      secondBookTypeList: [],
      allBookTypeList: [],
      cascaderList: []
    },
  },
  mutations: {
    setFirstBookTypeList (state, firstBookTypeList) {
      state.bookTypeList.firstBookTypeList = firstBookTypeList;
    },
    setSecondBookTypeList (state, secondBookTypeList) {
      state.bookTypeList.secondBookTypeList = secondBookTypeList;
    },
    setAllBookTypeList (state, allBookTypeList) {
      state.bookTypeList.allBookTypeList = allBookTypeList;
    },
    setCascaderList (state, cascaderList) {
      state.bookTypeList.cascaderList = cascaderList;
    },
    clear (state) {
      state.bookTypeList = {
        firstBookTypeList: [],
        secondBookTypeList: [],
        allBookTypeList: [],
        cascaderList: []
      }
    }
  },

}